package jdk10.newAPI;

import java.io.File;
import java.io.FileInputStream;
import java.util.Scanner;

/**
 * java.util.Scanner
 *
 */
public class ScannerNewConstructor {

	public static void main(String[] args) throws Exception {
		var scan = new Scanner(new FileInputStream(new File("d:/aa.txt")), "gbk");
		scan.useDelimiter(" |,");
		while (scan.hasNext()) {
			System.out.println(scan.next());
		}
		scan.close();
	}
}
